package cn.thr.pethome.shop.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.thr.pethome.base.domain.BaseDomian;
import cn.thr.pethome.employee.domain.Employee;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author thr
 * @since 2023-01-07
 */
@Data
public class Shop extends BaseDomian{

    private static final long serialVersionUID = 1L;
    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    @Excel(name = "创建时间", orderNum = "3", width = 30, isImportField = "true_st")
    private Date registerTime;
    /**
     * 待审核 审核通过 驳回
     */
    @Excel(name = "状态" ,orderNum = "4",replace ={"待审核_1","通过_2"} , width = 30, isImportField = "true_st")
    private Integer state;
    @Excel(name = "地址" ,orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店铺图片" ,orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long adminId;
    //获取另外一张表的数据
    private Employee admin;

}
